package com.oepm.biz.impl;

import com.oepm.biz.TimeBiz;
import com.oepm.dao.entity.TimePo;
import com.oepm.dao.mapper.TimeMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TimeBizImpl implements TimeBiz
{
    @Resource
    TimeMapper timeMapper;

    @Override
    public int insertTime(TimePo timePo) {
        return timeMapper.insertTime(timePo);
    }

    @Override
    public int deleteTime(String id) {
        return timeMapper.deleteTime(id);
    }

    @Override
    public int updateTime(TimePo timePo) {
        return timeMapper.updateTime(timePo);
    }

    @Override
    public List<TimePo> selectAll() {
        return timeMapper.selectAll();
    }

    @Override
    public List<TimePo> queryAllByAcademy(String academy) {
        return  timeMapper.queryAllByAcademy(academy);
    }
}
